* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #090a0d, #0f1014);
    color: #f1f1f1;
    min-height: 100%;
    overflow-x: hidden;
    padding: 0;
    background-attachment: fixed;
    line-height: 1.6em;
    font-size: 16px;
}

/* 几何装饰背景 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(108, 92, 231, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 118, 117, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 50% 30%, rgba(0, 206, 201, 0.05) 0%, transparent 30%);
    z-index: -1;
}

/* 网络线条背景 */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
}

/* 导航栏 - 浮动布局 */
header {
    background: rgba(15, 16, 20, 0.85);
    border-bottom: 1px solid rgba(108, 92, 231, 0.3);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.logo {
    float: left;
}

.logo-icon {
    font-size: 2rem;
    color: #6c5ce7;
    margin-right: 10px;
    text-shadow: 0 1px 2px rgba(206, 201, 201, 0.3);
    display: inline-block;
    transition: all 0.4s ease;
}

.logo-text {
    font-family: "Arial Black", sans-serif;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
    background: linear-gradient(to right, #6c5ce7, #c5c0c7, #b8e0e9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 2px rgba(108, 92, 231, 0.3);
    display: inline-block;
    vertical-align: middle;
    transition: all 0.4s ease;
}

.nav-links {
    float: right;
    list-style: none;
}

.nav-links li {
    float: left;
    margin-left: 30px;
}

.nav-links a {
    color: #f1f1f1;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    letter-spacing: 0.8px;
    font-size: 18px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #6c5ce7;
    transition: width 0.4s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 主题部分 */
.themes {
    padding: 120px 30px 80px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    clear: both;
}

/* 清除浮动影响 */
.themes::after {
    content: "";
    display: table;
    clear: both;
}

.themes h1 {
    font-family: "Impact", "Arial Black", sans-serif;
    font-size: 36px;
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(to right, #f1f1f1, #b8e0e9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 2px rgba(206, 201, 201, 0.3);
}

.themes p {
    font-size: 20px;
    color: #a2a2a2;
    max-width: 600px;
    margin: 0 auto;
}

.hero-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, #6c5ce7, #c5c0c7, #b8e0e9, #d9e0e9);
    margin: 30px auto;
    border-radius: 3px;
}

/* 博客详情页容器 */
.blog-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 50px;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
}

/* 博客详情文章 */
.blog-detail {
    background: rgba(15, 16, 20, 0.6);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.blog-detail::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(145deg, #6c5ce7, #b8e0e9);
    z-index: -1;
    border-radius: 12px;
}

.detail-title {
    font-family: "Arial Black", sans-serif;
    font-size: 32px;
    margin-bottom: 20px;
    color: #f1f1f1;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* 博客元信息 */
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    color: #a2a2a2;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    color: #6c5ce7;
}

.meta-item a {
    color: #b8e0e9;
    text-decoration: none;
}

.meta-item a:hover {
    text-decoration: underline;
}

/* 博客封面图 */
.detail-cover {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
}

.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.detail-cover img:hover {
    transform: scale(1.02);
}

/* 博客正文 */
.detail-content {
    line-height: 1.8;
    color: #e0e0e0;
}

.detail-content h2 {
    font-family: "Arial Black", sans-serif;
    font-size: 24px;
    margin: 30px 0 15px;
    color: #f1f1f1;
    letter-spacing: 0.8px;
}

.detail-content h3 {
    font-family: "Arial Black", sans-serif;
    font-size: 20px;
    margin: 25px 0 10px;
    color: #f1f1f1;
    letter-spacing: 0.5px;
}

.detail-content p {
    margin-bottom: 20px;
}

.detail-content blockquote {
    border-left: 4px solid #6c5ce7;
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #a2a2a2;
}

.detail-content ul,
.detail-content ol {
    margin: 15px 0 25px 30px;
}

.detail-content li {
    margin-bottom: 10px;
}

/* 博客标签 */
.detail-tags {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-tags span {
    color: #a2a2a2;
    margin-right: 10px;
}

.detail-tags .tag {
    display: inline-block;
    background: rgba(108, 92, 231, 0.2);
    color: #b8e0e9;
    padding: 6px 14px;
    border-radius: 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.detail-tags .tag:hover {
    background: rgba(108, 92, 231, 0.4);
    transform: translateY(-2px);
}

/* 上下篇导航 */
.detail-nav {
    display: flex;
    justify-content: space-between;
    margin: 40px 0;
}

.detail-nav a {
    color: #f1f1f1;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.detail-nav a:hover {
    color: #b8e0e9;
}

.prev-post,
.next-post {
    flex: 1;
}

.next-post {
    text-align: right;
}

.prev-post a {
    gap: 10px;
}

.next-post a {
    gap: 10px;
    justify-content: flex-end;
}

/* 作者信息 */
.author-info {
    display: flex;
    gap: 20px;
    margin: 40px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #6c5ce7;
}

.author-details h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.author-details p {
    color: #a2a2a2;
    margin-bottom: 15px;
}

.author-social a {
    color: #b8e0e9;
    margin-right: 15px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.author-social a:hover {
    color: #6c5ce7;
}

/* 评论区 */
.comments-section {
    margin-top: 60px;
}

.comments-section h3 {
    font-size: 24px;
    margin-bottom: 30px;
}

.comment-form {
    margin-bottom: 40px;
}

.comment-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 8px;
    padding: 15px;
    color: #f1f1f1;
    font-family: inherit;
    font-size: 16px;
    resize: vertical;
    min-height: 120px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.2);
}

.comment-form button {
    background: linear-gradient(135deg, #6c5ce7, #b8e0e9);
    color: #0f1014;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.comment-item {
    display: flex;
    gap: 20px;
}

.comment-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-content h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.comment-content h4 span {
    font-size: 14px;
    color: #a2a2a2;
    margin-left: 10px;
    font-weight: normal;
}

.comment-content p {
    color: #e0e0e0;
    margin-bottom: 10px;
}

.reply-btn {
    background: none;
    border: none;
    color: #b8e0e9;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.reply-btn:hover {
    color: #6c5ce7;
}

/* 侧边栏 */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: rgba(15, 16, 20, 0.6);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.sidebar-card h3 {
    font-family: "Arial Black", sans-serif;
    font-size: 20px;
    margin-bottom: 20px;
    color: #f1f1f1;
    letter-spacing: 0.8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

/* 作者卡片 */
.author-card {
    text-align: center;
}

.author-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #6c5ce7;
    margin-bottom: 15px;
}

.author-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.author-card p {
    color: #a2a2a2;
    margin-bottom: 15px;
    font-size: 14px;
}

.author-card .author-social a {
    color: #b8e0e9;
    margin: 0 8px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.author-card .author-social a:hover {
    color: #6c5ce7;
}

/* 热门文章 */
.hot-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hot-post {
    display: flex;
    gap: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hot-post:hover {
    transform: translateX(5px);
}

.hot-post img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    object-fit: cover;
}

.hot-post h4 {
    font-size: 16px;
    color: #f1f1f1;
    margin-bottom: 5px;
    line-height: 1.4;
}

.hot-post span {
    font-size: 14px;
    color: #a2a2a2;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tag-cloud a:hover {
    background: rgba(108, 92, 231, 0.3);
    color: #b8e0e9;
}

/* 页脚 */
footer {
    background: rgba(15, 16, 20, 0.8);
    padding: 50px 0;
    margin-top: 50px;
    box-sizing: border-box;
    border-top: 1px solid rgba(108, 92, 231, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    margin-right: 20px;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-family: "Arial Black", sans-serif;
    font-size: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.8px;
    color: #6c5ce7;
}

.footer-section p {
    color: #a2a2a2;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #a2a2a2;
    text-decoration: none;
    transition: all 0.4s ease;
}

.footer-links a:hover {
    color: #b8e0e9;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    color: #a2a2a2;
    background: rgba(15, 16, 20, 0.9);
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .blog-detail-container {
        grid-template-columns: 1fr;
    }
    
    .detail-cover {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
    }
    
    .logo {
        float: none;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .nav-links {
        float: none;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .nav-links li {
        float: none;
        margin-left: 0;
    }
    
    .themes {
        padding: 160px 20px 60px;
    }
    
    .themes h1 {
        font-size: 28px;
    }
    
    .themes p {
        font-size: 18px;
    }
    
    .blog-detail {
        padding: 25px;
    }
    
    .detail-title {
        font-size: 26px;
    }
    
    .author-info {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        text-align: center;
    }
    
    .detail-nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .next-post {
        text-align: left;
    }
    
    .next-post a {
        justify-content: flex-start;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
    